﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NRemedy
{
    public interface IARServerDefaultFactory
    {
        bool IsPooled { get; }

        /// <summary>
        /// if  IsPooled false or 
        /// </summary>
        /// <returns></returns>
        IARServer CreateARServer();

        /// <summary>
        /// if  IsPooled true
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        IARServer GetARServer(string key);
    }
}
